import {defineStore} from 'pinia';
import {io} from "socket.io-client";

const UseChatStore = defineStore({
    id: 'UseChatStore',

    state: () => ({
        info: 'pinia 可以使用',
        chat: {
            textarea: '',
            chatArr: []
        }
    }),

    // 开启数据缓存
    persist: true,
});
export default UseChatStore;

